BeSly Software Solutions About yab Demos About us Admin






Name:

or -- logical or, used in conditions

Synopsis:
 
if (a or b) ... 
while (a or b) ... 

Description:
Used in conditions (e.g within if or while) to join two expressions. Returns true, if either its left or its right or both arguments are true; returns false otherwise.

Example:
input "Please enter a number" 
if (a>9 or a<1) print "a is not between 1 and 9" 


Related: and, not, xor, eor